package edu.gatech.cs2340.sharks.fms.data;

/**
 * Item.java
 * @author Matthew Schauer
 * 
 * Contains information that is associated with an item entered in the system
 */

import edu.gatech.cs2340.sharks.fms.R;
import java.util.ArrayList;

public class Item implements Comparable
{
	public enum Status {LOST, FOUND, RESOLVED};
	
	private int id;
	public String name;
	public String date;
	public String location;
	public String description;
	public int reward;
	public Status status;
	public int img;
	public ArrayList<Tag> tags;
	
	public Item(int id, String name, String date, String location, String description, int reward, Status status)
	{
		super(); 
		this.id = id;
		this.name = name;
		this.date = date;
		this.location = location;
		this.description = description;
		this.reward = reward;
		this.status = status;
		this.img = R.drawable.default_icon;
		tags = new ArrayList<Tag>();
	}
	
	public int id() { return id; }
	public int compareTo(Object other) { return id - ((Item) other).id; }
}
